<?php
// 关联数组

$user = [
	'username'=>'小明',
	'age'=>18,
	'sex'=>'男',
	'addr'=>'广东'
];

$user['username'] = "小小明";

$user['qq'] = 12345789;

var_dump($user);
var_dump($user['addr']);

foreach ($user as $k => $v) {
	var_dump($k,$v);
}
